home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17915 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.mindlink.net!news
  2. From: genew@mindlink.bc.ca (Gene Wirchenko)
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Date: Thu, 18 Apr 1996 05:57:45 GMT
  6. Organization: MIND LINK! - British Columbia, Canada
  7. Message-ID: <4l4ls3$coh@fountain.mindlink.net>
  8. References: <4icpp9$7hr@barad-dur.nas.com> <4keejc$lpi@tpd.dsccc.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au> <4kmfqn$e0f@airdmhor.gen.nz> <4kubt3$2jk@plains.nodak.edu> <4l0c8p$rvp@fountain.mindlink.net> <4l1dn6$j3@belle.bork.com>
  9. NNTP-Posting-Host: line292.nwm.mindlink.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. scottr@belle.bork.com (Randy Scott) wrote:
  13.  
  14. >Gene Wirchenko (genew@mindlink.bc.ca) wrote:
  15. >: >Try this:
  16. >: >       if(something_happened) do_something_else();
  17. >: 
  18. >:      Not as clear as it should be by my standards.  YMMV.
  19.  
  20. >NOT CLEAR?  Hello?  That piece of code is just about as clear as it
  21. >gets!
  22.  
  23.      Not clear.  Two different block levels on the same line.  I don't
  24. like it.  Exceptions to block structure are rarely needed.
  25.  
  26. >: >or this:
  27. >: >       if(something_happened)
  28. >: >       {   do_something_else(); }
  29. >: 
  30. >:      Extraneous braces cause pause.
  31.  
  32. >I would have to agree, use braces only when absolutely necessary.
  33.  
  34.  
  35. >Randy Scott
  36.  
  37. Sincerely,
  38.  
  39. Gene Wirchenko
  40.  
  41. C Pronunciation Guide:
  42.      y=x++;     "wye equals ex plus plus semicolon"
  43.      x=x++;     "ex equals ex doublecross semicolon"
  44.  
  45.